package com.china08.yxyapi.repository.mg;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.china08.yxyapi.entity.mg.sws.SwsPvForTotalAnalyze;

public interface SwsPvForTotalAnalizeRepository extends MongoRepository<SwsPvForTotalAnalyze, String> {

    SwsPvForTotalAnalyze findBySchoolId(String schoolId);

    SwsPvForTotalAnalyze findTop1BySchoolIdOrderByPvDesc(String schoolId);

}
